from django.conf.urls import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
	
from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('theblog.views',
    # Examples:
    # url(r'^$', 'myblog.views.home', name='home'),
    # url(r'^myblog/', include('myblog.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
	url(r'^theblog/$', 'home'),
	url(r'^newblog/$', 'createNewBlog'),
	url(r'^theblog/submit/$', 'saveBlog'),
	url(r'^blogit/$', 'login_user'),
	url(r'^blogit/viewblog/$','viewBlog'),
	#url(r'^blogit/uploadimage/$','uploadImage'),
	url(r'^viewblog/content/$','viewContent'),
	url(r'^theblog/addcomment/submit/$','addComment'),
	url(r'^editblog/$','editBlog'),
	url(r'^theblog/update/$','updateBlog'),
	url(r'^deleteblog/$','deleteBlog'),
	url(r'^register/$', 'register'),
	url(r'^register/submit/$','registration'),
	url(r'^resetpassword/$', 'passwordpage'),
	url(r'^blogit/resetpassword/$', 'resetPwd'),
	url(r'^logout/$', 'logout_user'),
	url(r'^admin/', include(admin.site.urls)),
)
urlpatterns += staticfiles_urlpatterns()

